﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebPortal.Models.ViewModel.GoodsModelList>" %>

<asp:Content ID="CSS" ContentPlaceHolderID="StylesContainer" runat="server">
    <link href="../../Content/Auth.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="JS" ContentPlaceHolderID="ScriptContainer" runat="server">
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../Scripts/authorization.js"></script>
    <script type="text/javascript" src="../../Scripts/basket.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery.md5.js"></script>
    <script type="text/javascript" src="../../Scripts/cookie.js"></script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Search in basket
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<% if (Model.goods.Count > 0)
   { %>
    <% for (int i = 0; i < Model.goods.Count; i++)
       { %>

      <div class="item">
            <div><img src="/Content/Img/<%:Model.goods[i].Picture%>" alt="" /></div>
            <div><%: Model.goods[i].Name%></div>
            <div class="descr"><%:Model.goods[i].Description%></div>
            <div><a href="/Basket/Search?id=<%:Model.goods[i].CatID%>"><%:Model.goods[i].CatName%></a></div>
            <div class="count"><%:Model.goods[i].BasketCount%></div>
            <div class="delete" id="<%:Model.goods[i].GoodID%>">Delete</div>
       </div>

    <% } %>
<% }
   else
   { %>
   <h1>Nothing found for this query</h1>
   <% } %>
</asp:Content>
